#include <GL/gl.h>
#include <GL/glu.h>
#include "AppTimeView.h"

AppTimeView::AppTimeView(){
  
}

void AppTimeView::displayFront(){
  glBegin(GL_QUADS);
  glColor3ub(200, 200, 200);
  glVertex3d(-1, 0, 0);
  glVertex3d(-1, 2, 0);
  glVertex3d(1, 2, 0);
  glVertex3d(1, 0, 0);
  glColor3ub(220,220,220);
  glVertex3d(.5,.5,0);
  glEnd();
}

void AppTimeView::displayBack(){
  this->displayFront();
}

void AppTimeView::transitive(float percent){
  this->displayFront();
}

AppTimeView::~AppTimeView(){

}


extern "C" AppTimeView* create_view() {
    return new AppTimeView;
}

extern "C" void destroy_view(AppTimeView* p) {
    delete p;
}

